package wxusersocket.entity;

import java.io.Serializable;
import java.util.HashMap;
import java.util.HashSet;

public class Wxusersocket implements Serializable {
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    private String message;


    public Object getRedisentity() {
        return redisentity;
    }

    public void setRedisentity(Object redisentity) {
        this.redisentity = redisentity;
    }

    private Object redisentity;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column wxusersocket.id
     *
     * @mbg.generated Tue Mar 22 13:19:11 UTC 2022
     */
    private Integer id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column wxusersocket.openid
     *
     * @mbg.generated Tue Mar 22 13:19:11 UTC 2022
     */
    private String openid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column wxusersocket.lastopenid
     *
     * @mbg.generated Tue Mar 22 13:19:11 UTC 2022
     */
    private String lastopenid;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column wxusersocket.messagepid
     *
     * @mbg.generated Tue Mar 22 13:19:11 UTC 2022
     */
    private String messagepid;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table wxusersocket
     *
     * @mbg.generated Tue Mar 22 13:19:11 UTC 2022
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column wxusersocket.id
     *
     * @return the value of wxusersocket.id
     *
     * @mbg.generated Tue Mar 22 13:19:11 UTC 2022
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column wxusersocket.id
     *
     * @param id the value for wxusersocket.id
     *
     * @mbg.generated Tue Mar 22 13:19:11 UTC 2022
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column wxusersocket.openid
     *
     * @return the value of wxusersocket.openid
     *
     * @mbg.generated Tue Mar 22 13:19:11 UTC 2022
     */
    public String getOpenid() {
        return openid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column wxusersocket.openid
     *
     * @param openid the value for wxusersocket.openid
     *
     * @mbg.generated Tue Mar 22 13:19:11 UTC 2022
     */
    public void setOpenid(String openid) {
        this.openid = openid == null ? null : openid.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column wxusersocket.lastopenid
     *
     * @return the value of wxusersocket.lastopenid
     *
     * @mbg.generated Tue Mar 22 13:19:11 UTC 2022
     */
    public String getLastopenid() {
        return lastopenid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column wxusersocket.lastopenid
     *
     * @param lastopenid the value for wxusersocket.lastopenid
     *
     * @mbg.generated Tue Mar 22 13:19:11 UTC 2022
     */
    public void setLastopenid(String lastopenid) {
        this.lastopenid = lastopenid == null ? null : lastopenid.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column wxusersocket.messagepid
     *
     * @return the value of wxusersocket.messagepid
     *
     * @mbg.generated Tue Mar 22 13:19:11 UTC 2022
     */
    public String getMessagepid() {
        return messagepid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column wxusersocket.messagepid
     *
     * @param messagepid the value for wxusersocket.messagepid
     *
     * @mbg.generated Tue Mar 22 13:19:11 UTC 2022
     */
    public void setMessagepid(String messagepid) {
        this.messagepid = messagepid;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wxusersocket
     *
     * @mbg.generated Tue Mar 22 13:19:11 UTC 2022
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", openid=").append(openid);
        sb.append(", lastopenid=").append(lastopenid);
        sb.append(", messagepid=").append(messagepid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wxusersocket
     *
     * @mbg.generated Tue Mar 22 13:19:11 UTC 2022
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Wxusersocket other = (Wxusersocket) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOpenid() == null ? other.getOpenid() == null : this.getOpenid().equals(other.getOpenid()))
            && (this.getLastopenid() == null ? other.getLastopenid() == null : this.getLastopenid().equals(other.getLastopenid()))
            && (this.getMessagepid() == null ? other.getMessagepid() == null : this.getMessagepid().equals(other.getMessagepid()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table wxusersocket
     *
     * @mbg.generated Tue Mar 22 13:19:11 UTC 2022
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOpenid() == null) ? 0 : getOpenid().hashCode());
        result = prime * result + ((getLastopenid() == null) ? 0 : getLastopenid().hashCode());
        result = prime * result + ((getMessagepid() == null) ? 0 : getMessagepid().hashCode());
        return result;
    }
}
